package guojin.sqlsession;


import java.util.List;

/**
 * @author haoge
 * @version $Id SqlSession.java, v 0.1 2021-06-12 22:07 haoge Exp $$
 */
public interface SqlSession {

    //查询所有
    public <T> List<T> selectList(String statementid, Object... params) throws Exception;

    //查询单个
    public <E> E selectOne(String statementid, Object... params) throws Exception;
    //添加数据
    public <E> int addUser(String statementid, Object... params) throws Exception;

    public <E> int updateUser(String statementid, Object... params) throws Exception;

    public <E> int deleteUser(String statementid, Object... params) throws Exception;

    //代理
    public <T> T getMapper(Class<?> mapperClass);
}
